<?php
/**
 * Created by PhpStorm.
 * User: wangye
 * Date: 19-3-6
 * Time: 上午11:14
 */
$cache_name = md5(__FILE__).'html';
$cache_lifetime = 3600;
if ( filectime(__FILE__) <= filectime($cache_name) && file_exists($cache_name) && filectime($cache_name) + $cache_lifetime > time()){
    exit(123);
    include_once $cache_name;
    exit();
}
ob_start(); // 开启缓存区
?>
<b>This is My Script<b>

<?php
$content = ob_get_contents();
//var_dump($content);
ob_end_flush();
$handle = fopen($cache_name,'w');
fwrite($handle,$cache_name);
fclose($handle);


?>